package test.myorm.core;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class BaseMapping {
	@SuppressWarnings("rawtypes")
	protected static final List<Class> baseClasses = Arrays.asList(int.class, float.class, double.class, long.class
			, char.class, Integer.class, Float.class, Double.class, Long.class, Character.class, String.class
			, BigDecimal.class);
	
	static Map<String, Class> shortClassMap = new HashMap<>();
	static {
		shortClassMap.put("int", Integer.class);
		shortClassMap.put("float", Float.class);
		shortClassMap.put("double", Double.class);
		shortClassMap.put("long", Long.class);
		shortClassMap.put("char", Character.class);
		shortClassMap.put("String", String.class);
		shortClassMap.put("BigDecimal", BigDecimal.class);
		shortClassMap.put("map", HashMap.class);
	}
	public static Class getShortResultType(String shortName) {
		return shortClassMap.get(shortName);
	}
}
